package com.nba.service;

import java.util.List;

import com.nba.bean.Page;
import com.nba.bean.Player;
import com.nba.bean.inherit.PlayerInherit;

public interface PlayerService {
		
	/**查询所有球员
	 * @return
	 */
	List<Player> getAllplayer();
	
	/**通过id查找
	 * @param playerId
	 * @return
	 */
	Player getplayerById(int playerId);
	
	/**删除球员
	 * @param playerId
	 * @return
	 */
	int deletePlayer(int playerId);
	
	/**添加球队
	 * @param player
	 * @return
	 */
	int addPlayer(Player player);
	
	/**修改球队
	 * @param player
	 * @return
	 */
	int updatePlayer(Player player);
	
	/**通过关键字查找 (分页查询)
	 * @param keyword
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	Page<PlayerInherit> getPlayer(String keyword ,int pageNum,int pageSize);
	
	/**通过球员名查找
	 * @param playerName
	 * @return
	 */
	Player selectPlayerByName(String playerName);
}
